<%--用户修改个人信息界面--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    *{
        margin: 0px;
        padding: 0px;
        box-sizing: border-box;
    }
    .rg_layout{
        width: 500px;
        height:700px;
        border: 8px solid #EEEEEE;
        /*让div水平居中*/
        margin: auto;
        padding: 15px;
    }
    .rg_up{
        border: 1px;
        float: left;
        margin-top: 125px;
        margin-bottom: 2px;
    }
    .rg_center{
        border: 1px;
        width:452px ;
    }
    .p_reg{
        color: blue;
        font-size: 20px;
    }
    .td_up{
        width: 80px;
        text-align: right;
        height: 40px;
    }
    .td_bottom{
        padding-left: 30px;
    }
    #usename,#password,#tel,#birthday{
        width: 290px;
        height: 32px;
        border: 1px solid #A6A6A6;
        /*设置边框圆角*/
        border-radius: 5px;
        padding-left: 10px;
    }
    #submit{
        width: 100px;
        height: 30px;
        background-color:lightskyblue;
        align-content: center;
        border: 1px solid lightskyblue;
        margin-bottom: 20px;
    }
    #back{
        width: 100px;
        height: 30px;
        background-color:lightskyblue;
        align-content: center;
        border: 1px solid lightskyblue;
    }
</style>
<body>
<div class="rg_layout">
    <div class="rg_up">
        <p class="p_reg">修改个人信息</p>
        <br>
    </div>
    <div class="rg_center">
        <div class="rg_form">
            <form action="${pageContext.request.contextPath}/updateUserServlet" method="post">
<%--隐藏域提交id--%>
<input type="hidden" name="id" value="${userfind.id}">
                <table>
                    <tr>
                        <td class="td_up"><label for="usename">用户名</label></td>
                        <td class="td_bottom"><input type="text" name="usename" id="usename" value="${userfind.usename}" readonly="readonly" placeholder="请输入用户名"></td>
                    </tr>
                    <tr>
                        <td class="td_up"><label for="password">密码</label></td>
                        <td class="td_bottom"><input type="password" name="password" id="password" value="${userfind.password}"placeholder="请输入密码"></td>
                    </tr>
                    <tr>
                        <td class="td_up"><label for="tel">手机号</label></td>
                        <td class="td_bottom"><input type="text" name="telephone" id="tel" value="${userfind.telephone}"placeholder="请输入手机号"></td>
                    </tr>
                    <tr>
                        <td class="td_up"><label for="birthday">年龄</label></td>
                        <td class="td_bottom"><input type="text" name="age" id="birthday" value="${userfind.age}"placeholder="请输入年龄"></td>
                    </tr>
                    <tr>
                        <td class="td_up"><label >性别</label></td>
                        <c:if test="${userfind.gender=='男'}">
                            <td class="td_bottom"><input type="radio" name="gender" value="男" checked> 男
                                <input type="radio" name="gender" value="女" placeholder="请选择性别"> 女</td>
                        </c:if>
                        <c:if test="${userfind.gender=='女'}">
                            <td class="td_bottom"><input type="radio" name="gender" value="男" > 男
                                <input type="radio" name="gender" value="女" checked placeholder="请选择性别"> 女</td>
                        </c:if>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" id="submit" value="提交"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" id="back" value="取消"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <br>
</div>
</body>
</html>